package Book;

public class BookList {
    Book[] books = new Book[10];
    private int usedSize;

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }

    public Book getBooks(int index) {
        return books[index];
    }

    public void setBooks(int index,Book book) {
        books[index] = book;
    }

    public BookList() {
        this.books[0] = new Book("西游记","吴承恩",10,"名著小说");
        this.books[1] = new Book("三国演义","罗贯中",11,"名著小说");
        this.books[2] = new Book("水浒传","施耐庵",12,"名著小说");
        this.books[3] = new Book("红楼梦","曹雪芹",13,"名著小说");
        usedSize=4;
    }
}
